projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1c2bb8
)
um: adjust size of pid_buf
author
Richard Weinberger
<
[email protected]
>
Tue, 26 Jul 2011 00:12:55 +0000
(17:12 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Jul 2011 03:57:13 +0000
(20:57 -0700)
Linux can have pids up to 4*1024*1024. To handle such huge numbers
pid_buf needs to be larger.
Reported-by: Geert Uytterhoeven <
[email protected]
>
Signed-off-by: Richard Weinberger <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/um/drivers/harddog_user.c
patch
|
blob
|
history
diff --git
a/arch/um/drivers/harddog_user.c
b/arch/um/drivers/harddog_user.c
index b56f8e0196a9e1c4bc0d2c6aa3308785e4c750e9..84dce3fc590cb90eb9238107dc463cb70efd9fc0 100644
(file)
--- a/
arch/um/drivers/harddog_user.c
+++ b/
arch/um/drivers/harddog_user.c
@@
-32,7
+32,7
@@
int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock)
{
struct dog_data data;
int in_fds[2], out_fds[2], pid, n, err;
- char pid_buf[sizeof("nnnnn\0")], c;
+ char pid_buf[sizeof("nnnnn
nn
\0")], c;
char *pid_args[] = { "/usr/bin/uml_watchdog", "-pid", pid_buf, NULL };
char *mconsole_args[] = { "/usr/bin/uml_watchdog", "-mconsole", NULL,
NULL };