Skip to content

Commit

Permalink
e_start indent corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
thewaiter committed Aug 12, 2022
1 parent cd601e2 commit 17d2b1b
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions src/bin/e_start_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ _env_path_prepend(const char *env, const char *path)
strcat(s, p2);
if (p)
{
if (p[0] != ':') strcat(s, ":");
if (p[0] != ':') strcat(s, ":");
strcat(s, p);
}
env_set(env, s);
Expand Down Expand Up @@ -512,10 +512,9 @@ main(int argc, char **argv)
{
pid_t child;

stop_ptrace = EINA_FALSE;
stop_ptrace = EINA_FALSE;

child = fork();

if (child < 0) /* failed attempt */
return -1;
else if (child == 0)
Expand Down Expand Up @@ -608,19 +607,19 @@ main(int argc, char **argv)
#endif
/* And call gdb if available */
r = 0;
/* Check if patch to prevent ptrace to another process is present in the kernel. */
{
int fd;
char c;

fd = open("/proc/sys/kernel/yama/ptrace_scope", O_RDONLY);
if (fd != -1)
{
if (read(fd, &c, sizeof (c)) == sizeof (c) && c != '0')
bad_kernel = EINA_TRUE;
close(fd);
}
}
/* Check if patch to prevent ptrace to another process is present in the kernel. */
{
int fd;
char c;

fd = open("/proc/sys/kernel/yama/ptrace_scope", O_RDONLY);
if (fd != -1)
{
if (read(fd, &c, sizeof (c)) == sizeof (c) && c != '0')
bad_kernel = EINA_TRUE;
close(fd);
}
}

if (home && !bad_kernel)
{
Expand All @@ -630,7 +629,7 @@ main(int argc, char **argv)
"--pid=%i "
"-batch "
"-ex 'set logging file %s/.e-crashdump.txt' "
"-ex 'set logging on' "
"-ex 'set logging on' "
"-ex 'thread apply all backtrace full' "
"-ex detach > /dev/null 2>&1 < /dev/zero",
child,
Expand Down

0 comments on commit 17d2b1b

Please sign in to comment.