Write to stdout (fd 1) rather than stdin (fd 0). - nlmon - NetLink MONitor; a lightweight udevadm monitor replacement. | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 5881cff90359800b1d01ebc0bf35f53f4a67815d | |
parent a4f492885a4b915e28ecb2461a535510792d8da4 | |
Author: Isaac Dunham | |
Date: Tue, 28 Jul 2015 22:20:42 -0700 Write to stdout (fd 1) rather than stdin (fd 0). Signed-off-by: Christoph Lohmann <20h@r-36.net> Diffstat: nlmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- | |
diff --git a/nlmon.c b/nlmon.c | |
@@ -156,7 +156,7 @@ main(int argc, char *argv[]) } if (olen > 0) { obuf[olen] = '\n'; - write(0, obuf, olen+1); + write(1, obuf, olen+1); } } |