chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] fix dbg line in namedev.c
[elogind.git]
/
udev-add.c
diff --git
a/udev-add.c
b/udev-add.c
index d9d7cab103098a35b14d95f384ade479399cb269..7d0bdadcb75fe3821bdfe1dff57f6a7fce6027db 100644
(file)
--- a/
udev-add.c
+++ b/
udev-add.c
@@
-128,7
+128,7
@@
exit:
* If it doesn't happen in about 10 seconds, give up.
*/
#define SECONDS_TO_WAIT_FOR_DEV 10
* If it doesn't happen in about 10 seconds, give up.
*/
#define SECONDS_TO_WAIT_FOR_DEV 10
-int sleep_for_dev(char *path)
+
static
int sleep_for_dev(char *path)
{
char filename[SYSFS_PATH_MAX + 6];
struct stat buf;
{
char filename[SYSFS_PATH_MAX + 6];
struct stat buf;
@@
-150,6
+150,7
@@
int sleep_for_dev(char *path)
/* sleep for a second or two to give the kernel a chance to
* create the dev file */
sleep(1);
/* sleep for a second or two to give the kernel a chance to
* create the dev file */
sleep(1);
+ ++loop;
}
retval = -ENODEV;
exit:
}
retval = -ENODEV;
exit: