Skip to content

Instantly share code, notes, and snippets.

@ThomasAdam
Created March 29, 2012 13:37
Show Gist options
  • Save ThomasAdam/2237485 to your computer and use it in GitHub Desktop.
Save ThomasAdam/2237485 to your computer and use it in GitHub Desktop.
FvwmCommandS
diff --git a/modules/FvwmCommand/FvwmCommandS.c b/modules/FvwmCommand/FvwmCommandS.c
index 2e7d456..e1f5272 100644
--- a/modules/FvwmCommand/FvwmCommandS.c
+++ b/modules/FvwmCommand/FvwmCommandS.c
@@ -370,6 +370,7 @@ void close_fifos(void)
*/
int open_fifos(const char *f_stem)
{
+ fprintf(stderr, "f_stem: %s\n", f_stem);
/* create 2 fifos */
FfdC_name = malloc(strlen(f_stem) + 2);
if (FfdC_name == NULL)
diff --git a/modules/FvwmCommand/fifos.c b/modules/FvwmCommand/fifos.c
index 8e98f2a..d749b0e 100644
--- a/modules/FvwmCommand/fifos.c
+++ b/modules/FvwmCommand/fifos.c
@@ -91,6 +91,8 @@ char * fifos_get_default_name(void)
}
strcat(f_stem, F_NAME);
+ fprintf(stderr, "Found: %s\n", f_stem);
+
/* Make it unique */
if (!dpy_name[0] || ':' == dpy_name[0])
{
@@ -139,6 +141,8 @@ char * fifos_get_default_name(void)
}
else if (errno != ENOENT)
{
+ fprintf(stderr, "Couldn't stat f_stem (%s), due to: %s\n",
+ f_stem, strerror(errno));
is_path_valid = False;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment