diff options
author | Gerald Carter <jerry@samba.org> | 2005-06-09 15:20:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:09 -0500 |
commit | 129b461673ecd0ad4d16c0c99585dd5c067172df (patch) | |
tree | 1a87e9c9f5e6f89c70488e3a8fa0efb8c7e8c83d /source3/lib/select.c | |
parent | d197ddd4c331d12c6b1d4d582a37c49768cba856 (diff) | |
download | samba-129b461673ecd0ad4d16c0c99585dd5c067172df.tar.gz |
r7440: * merge registry server changes from trunk (so far) for more
printmig.exe work
* merge the sys_select_signal(char c) change from trunk
in order to keeo the winbind code in sync
(This used to be commit a112c5570a7f8ddddde1af0fa665f40a6067e8cf)
Diffstat (limited to 'source3/lib/select.c')
-rw-r--r-- | source3/lib/select.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/lib/select.c b/source3/lib/select.c index 2e55f9753db..f63221f7cfa 100644 --- a/source3/lib/select.c +++ b/source3/lib/select.c @@ -38,9 +38,8 @@ static VOLATILE unsigned pipe_written, pipe_read; nasty signal race condition. ********************************************************************/ -void sys_select_signal(void) +void sys_select_signal(char c) { - char c = 1; if (!initialised) return; if (pipe_written > pipe_read+256) return; @@ -111,6 +110,10 @@ int sys_select(int maxfd, fd_set *readfds, fd_set *writefds, fd_set *errorfds, s byte in the pipe and lose the signal. JRA. */ ret = -1; +#if 0 + /* JRA - we can use this to debug the signal messaging... */ + DEBUG(0,("select got %u signal\n", (unsigned int)c)); +#endif errno = EINTR; } else { FD_CLR(select_pipe[0], readfds2); |