Article View: comp.mail.mush
Article #5Re: Strange things in mush (already patch#5 on SunOS4.1.2)
From: NUMATA Toshinori
Date: Fri, 30 Oct 1992 02:51
Date: Fri, 30 Oct 1992 02:51
27 lines
1376 bytes
1376 bytes
In article <9210271117.ZM22350@z-code.com> schaefer@z-code.z-code.com writes:
>} --- 170,176 ----
>} }
>} }
>} off_intr();
>} ! if (lockfd < 0) {
>} if (cnt)
>} print("done.\n");
>} (void) close(lockfd);
>} ***************
>should of course read
> if (lockfd > -1) {
The close() call in the "if" statement should also be deleted because
the value xcreat() returns (and assigned to lockfd) is 0, -1, or -2
depending on success or failure of the creation of lock file, and no
longer related to any file descriptors.
This code eventually closes file descriptor 0 (stdin) when a lock file
is created, and cause mush exit without getting into interactive mode.
--
NUMATA, Toshinori numa@sysrap.cs.fujitsu.co.jp or
postmaster@sysrap.cs.fujitsu.co.jp
Architecture Dept., Open Systems Group, FUJITSU LIMITED
Technical Details
Message-ID:
<1405@sysrap.sysrap.cs.fujitsu.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!bnrgate!nrcnet0!cunews!torn!cs.utexas.edu!sun-barr!sh.wide!fgw!fdm!csgw!spad!numaReferences:
<9210271117.ZM22350@z-code.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!bnrgate!nrcnet0!cunews!torn!cs.utexas.edu!sun-barr!sh.wide!fgw!fdm!csgw!spad!numa From: numa@sysrap.cs.fujitsu.co.jp (NUMATA Toshinori) Newsgroups: comp.mail.mush Subject: Re: Strange things in mush (already patch#5 on SunOS4.1.2) Message-ID: <1405@sysrap.sysrap.cs.fujitsu.co.jp> Date: 30 Oct 92 02:51:58 GMT References: <9210271117.ZM22350@z-code.com> Followup-To: numa@spad.sysrap.cs.fujitsu.co.jp Organization: Fujitsu Limited, Kawasaki, Japan Lines: 27