summaryrefslogtreecommitdiffstats
path: root/source/lib/signal.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed problem where with POSIX signal handling (as used in Solaris andJeremy Allison1999-01-141-1/+21
| | | | | | | IRIX) we would infinately loop on a SIGCLD in the password changing code. Just lucky we didn't get bitten in the generic SIGCLD case (but I fixed that too). Jeremy.
* lib/signal.c: Added CatchChildLeaveStatus() call needed in smbd/open.c and ↵Jeremy Allison1998-12-291-12/+28
| | | | | | | | | | | | | | | | | | | | | | | smbd/chgpasswd.c. smbd/chgpasswd.c smbd/open.c: Ensure that we replace SIGCLD handler with CatchChildLeaveStatus() *before* we expect to reap a child status - and reset it to CatchChild() after we've done the sys_waitpid(). The original CatchChild() code would eat the status code from the zombie in the signal handler, meaning that the sys_waitpid() calls in check_access_allowed_for_current_user() and chgpasswd would never return a status. smbd/open.c: smbd/reply.c: smbd/close.c: Check error return on close() calls - ensure a valid error return is sent back to the client. This catches the "file truncated" bug when a user has run out of quota (or space) and the ENOSPC error is returned on the *close()* call, not the write() (eg. on an nfs mounted drive). smbd/fileio.c: Added check for ESPIPE on sys_lseek() in file_seek() to allow people to use Windows clients to communicate with UNIX fifo's (like they could in 1.9.18). Jeremy.
* some cleanups to use ZERO_STRUCT() and friendsAndrew Tridgell1998-09-051-1/+1
|
* This should fix the zombie problem that luke noticed.Andrew Tridgell1998-08-301-1/+1
|
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-0/+102