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:
Kevin Easton
2012-02-01 13:26:50 +00:00
parent 5cf8ed2c79
commit ed16081a2b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
[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
freenode. (caf)

View File

@@ -2601,9 +2601,7 @@ static int create_ipc_socket(void)
write(u, "\n", 1);
close(u);
}
#ifdef F_SETOWN
fcntl(s, F_SETOWN, getpid());
#endif /* F_SETOWN */
set_non_blocking(s);
add_socketread(s, port, 0, socket_path, handle_reconnect, NULL);
save_ipc = s;
@@ -2700,7 +2698,6 @@ pid_t sid;
return;
already_detached = 1;
use_input = 0;
ioctl(0, F_SETOWN, pid);
if (create_ipc_socket())
{