mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
commit
1570b6f0c5
@ -362,7 +362,7 @@ exe_no_stdin(char *path) {
|
||||
#if defined(F_GETFD) && defined(FD_CLOEXEC)
|
||||
int flags;
|
||||
|
||||
flags = fcntl(STDIN_FILENO, F_GETFD, &flags);
|
||||
flags = fcntl(STDIN_FILENO, F_GETFD);
|
||||
fcntl(STDIN_FILENO, F_SETFD, flags | FD_CLOEXEC);
|
||||
ret = exe(path);
|
||||
fcntl(STDIN_FILENO, F_SETFD, flags);
|
||||
|
@ -226,8 +226,6 @@ void
|
||||
exec_thread(char *path, int p)
|
||||
{
|
||||
int plen = strlen(path + 1) + 2;
|
||||
pid_t pid;
|
||||
int flags;
|
||||
|
||||
#if defined(HAVE_SETPGID) && !defined(CONFIG_OS_BEOS) && !defined(HAVE_BEGINTHREAD)
|
||||
if (path[0] == TERM_EXEC_NEWWIN) setpgid(0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user