This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
btpd
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Print the result of, and not the address of, getpid().
master
Richard Nyberg
16 years ago
parent
7ba163fe5a
commit
33f309c204
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
btpd/main.c
+ 1
- 1
btpd/main.c
View File
@@ -19,7 +19,7 @@ writepid(int pidfd)
{
int nw;
char pidtxt[100];
nw = snprintf(pidtxt, sizeof(pidtxt), "%ld", (long)getpid);
nw = snprintf(pidtxt, sizeof(pidtxt), "%ld", (long)getpid
()
);
ftruncate(pidfd, 0);
write(pidfd, pidtxt, nw);
}
Write
Preview
Loading…
Cancel
Save