1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

code cleanup

This commit is contained in:
sgerwk 2021-03-20 17:20:26 +01:00
parent c82a820e62
commit 91819222af
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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);