From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263881AbUECUKE (ORCPT ); Mon, 3 May 2004 16:10:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263745AbUECUKD (ORCPT ); Mon, 3 May 2004 16:10:03 -0400 Received: from gprs214-205.eurotel.cz ([160.218.214.205]:25984 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S263881AbUECUJ2 (ORCPT ); Mon, 3 May 2004 16:09:28 -0400 Date: Mon, 3 May 2004 22:09:19 +0200 From: Pavel Machek To: Grzegorz Piotr Jaskiewicz Cc: Hamie , linux-kernel@vger.kernel.org Subject: Re: uspend to Disk - Kernel 2.6.4 vs. r50p Message-ID: <20040503200919.GA19306@elf.ucw.cz> References: <20040429064115.9A8E814D@damned.travellingkiwi.com> <20040503123150.GA1188@openzaurus.ucw.cz> <40965DAA.4040504@pointblue.com.pl> <20040503192940.GA3531@elf.ucw.cz> <4096A697.2020707@pointblue.com.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4096A697.2020707@pointblue.com.pl> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > >A: Do reboot() syscall with right parameters. Warning: glibc gets in > >its way, so check with strace: > > > >reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, 0xd000fce2) > > > >Ouch, and when you code that trivial program, send me source, I lost > >mine. > > > > > Wouldn't it be better to just add place in proc that triggers it ? I'm not going to add *another* place in /proc. Plus, shutdown -z on modern distributions should work too. Pavel -- 934a471f20d6580d5aad759bf0d97ddc