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