chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cfe2fd
)
util: fix fd_cloexec(), fd_nonblock()
author
Lennart Poettering
<lennart@poettering.net>
Thu, 5 Jun 2014 17:38:00 +0000
(19:38 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 5 Jun 2014 17:38:00 +0000
(19:38 +0200)
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index 7a4dacd2138ca52eff63e338ddf255d893e516ef..49185a99a95ea2a57a239bc22c4f7ceda122afcd 100644
(file)
--- a/
src/shared/util.c
+++ b/
src/shared/util.c
@@
-1393,7
+1393,7
@@
int fd_nonblock(int fd, bool nonblock) {
if (nflags == flags)
return 0;
- if (fcntl(fd, F_SETFL, flags) < 0)
+ if (fcntl(fd, F_SETFL,
n
flags) < 0)
return -errno;
return 0;
@@
-1416,7
+1416,7
@@
int fd_cloexec(int fd, bool cloexec) {
if (nflags == flags)
return 0;
- if (fcntl(fd, F_SETFD, flags) < 0)
+ if (fcntl(fd, F_SETFD,
n
flags) < 0)
return -errno;
return 0;