[21322] in Athena Bugs
bug in 9.1.23 disco-athena package: apmcontinue broken
daemon@ATHENA.MIT.EDU (Derek Atkins)
Wed Jan 15 18:12:46 2003
To: bugs@MIT.EDU, source-reviewers@MIT.EDU
Cc: warlord@MIT.EDU
From: Derek Atkins <warlord@MIT.EDU>
Date: 15 Jan 2003 18:12:43 -0500
Message-ID: <sjm8yxm3t3o.fsf@kikki.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
The apmcontinue script distributed by the disco-athena package causes
suspend/resume to fail after the first cycle. The fix is simple:
remove the 'exec' from the script.
The problem is that the script is executed by apmscript as:
. /etc/sysconfig/apm-scripts/apmcontinue
When apmcontinue performs the 'exec', it never returns control back to
apmscript, which never destroys the apm lock.
I have tested this patch and it works great on my machine.
-derek
--- apmcontinue~ Tue Jan 14 12:19:36 2003
+++ apmcontinue Wed Jan 15 17:52:27 2003
@@ -6,4 +6,4 @@
# $1: apm event type
#
-exec /etc/athena/network-scripts/net-event "$1"
+/etc/athena/network-scripts/net-event "$1"
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available