Remove bogus F_SETOWN use in /detach code.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@146 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
[Changes 1.2c01]
|
[Changes 1.2c01]
|
||||||
|
|
||||||
|
* Improve /detach error handling and remove bogus F_SETOWN use, reported
|
||||||
|
by madsage. (caf)
|
||||||
|
|
||||||
* Add /FSET WHOIS_SECURE for SSL connection info on ratbox, unreal and
|
* Add /FSET WHOIS_SECURE for SSL connection info on ratbox, unreal and
|
||||||
freenode. (caf)
|
freenode. (caf)
|
||||||
|
|
||||||
|
|||||||
@@ -2601,9 +2601,7 @@ static int create_ipc_socket(void)
|
|||||||
write(u, "\n", 1);
|
write(u, "\n", 1);
|
||||||
close(u);
|
close(u);
|
||||||
}
|
}
|
||||||
#ifdef F_SETOWN
|
|
||||||
fcntl(s, F_SETOWN, getpid());
|
|
||||||
#endif /* F_SETOWN */
|
|
||||||
set_non_blocking(s);
|
set_non_blocking(s);
|
||||||
add_socketread(s, port, 0, socket_path, handle_reconnect, NULL);
|
add_socketread(s, port, 0, socket_path, handle_reconnect, NULL);
|
||||||
save_ipc = s;
|
save_ipc = s;
|
||||||
@@ -2700,7 +2698,6 @@ pid_t sid;
|
|||||||
return;
|
return;
|
||||||
already_detached = 1;
|
already_detached = 1;
|
||||||
use_input = 0;
|
use_input = 0;
|
||||||
ioctl(0, F_SETOWN, pid);
|
|
||||||
|
|
||||||
if (create_ipc_socket())
|
if (create_ipc_socket())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user