summaryrefslogtreecommitdiffstats
path: root/external/meta-openembedded/meta-networking/recipes-support/linux-atm/linux-atm/musl-no-on_exit.patch
blob: 25211d7c1046277e4f627ee56d0a82d0aa8883ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: musl lacks on_exit
Author: Adrian Bunk <bunk@stusta.de>

Only prints a trace on nonzero exit(),
so can safely be disabled in musl builds.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Upstream-Status: Inappropriate [musl specific]

--- linux-atm-2.5.1.orig/src/sigd/atmsigd.c
+++ linux-atm-2.5.1/src/sigd/atmsigd.c
@@ -283,6 +283,7 @@ static void setup_signals(void)
 /* ------------------------------- main ...  ------------------------------- */
 
 
+#if 0
 static void trace_on_exit(int status,void *dummy)
 {
     char path[PATH_MAX+1];
@@ -300,6 +301,7 @@ static void trace_on_exit(int status,voi
     dump_trace(file,"Message trace (after error exit)");
     if (file != stderr) (void) fclose(file);
 }
+#endif
 
 
 static void manual_override(void)
@@ -517,7 +519,9 @@ int main(int argc,char **argv)
 	    exit(0);
 	}
     }
+#if 0
     (void) on_exit(trace_on_exit,NULL);
+#endif
     poll_loop();
     close_all();
     for (sig = entities; sig; sig = sig->next) stop_saal(&sig->saal);