From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sun, 13 Apr 2003 14:03:14 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 97 ************************************************** Saturday 12 April 2003 Number 97 ************************************************** Subjects for today 1 Re: Deleting \socket\syslog : Dave and Natalie" 2 OT perl & flock : Dave Saville" 3 Re: OT perl & flock : Henry Sobotka **= Email 1 ==========================** Date: Sun, 13 Apr 2003 10:10:57 -0800 From: "Dave and Natalie" Subject: Re: Deleting \socket\syslog On Sat, 12 Apr 2003 11:56:24 +0100, John Poltorak wrote: > >Can anyone suggest how I would go about deleting \socket\syslog ? > > >I think this was created by SYSLOGD, but has remained after I killed the >program, and now I can't restart it. I have a program here that does that. Upload Information Template for Hobbes.nmsu.edu =============================================== Archive Filename: soclose Short Description: soclose - Socket closer Long Description: soclose - Socket closer Lets you close any socket given its socket descriptor ID, obtained with the NETSTAT -s command. Useful for ending some kinds of PM programs or for freeing up active side sockets stuck in the CLOSE_WAIT state. proposed directory for placement: /pub/os2/util/network **= Email 2 ==========================** Date: Sun, 13 Apr 2003 12:14:30 +0100 (BST) From: "Dave Saville" Subject: OT perl & flock Guys Do we think flock works on OS/2? If so, I know that you need an open file handle to put a lock on, but surely to take one off it must work on a closed file handle - otherwise there would be a window between releasing the lock and closing the file. open FILEHANDLE, "somefile"; flock FILEHANDLE, $LOCK_EX; stuff close FILEHANDLE; flock FILEHANDLE, $LOCK_UN; ?? TIA -- Regards Dave Saville **= Email 3 ==========================** Date: Sun, 13 Apr 2003 12:29:15 -0400 From: Henry Sobotka Subject: Re: OT perl & flock Dave Saville wrote: > > close FILEHANDLE; > flock FILEHANDLE, $LOCK_UN; Closing the file automatically releases any locks. h~