diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-02-20 11:56:46 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-02-20 11:56:46 +0100 |
commit | f5fc5561be15f1b353a29e99679783878ed7503f (patch) | |
tree | 14f0ca0b81c4cd37670da0b65b0e2692d8b8c5fd /src/actions.c | |
parent | 15a8eaef00219421e4b9103ef974bc9ada2d0bca (diff) | |
download | ratpoison-f5fc5561be15f1b353a29e99679783878ed7503f.zip |
Change set_close_on_exec to take a file descriptor.
* Since it's easier to get a fd from a FILE * rather than the other way
around.
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c index 164fa0a..24cb62f 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1154,7 +1154,7 @@ cmd_source (int interactive UNUSED, struct cmdarg **args) return cmdret_new (RET_FAILURE, "source: %s : %s", ARG_STRING(0), strerror(errno)); else { - set_close_on_exec (fileptr); + set_close_on_exec (fileno (fileptr)); read_rc_file (fileptr); fclose (fileptr); } |