openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/basic/util.c
void disable_coredumps(void)
{
    int r;

    if (detect_container() > 0)
        return;

    r = write_string_file("/proc/sys/kernel/core_pattern", "|/bin/false",
                          WRITE_STRING_FILE_DISABLE_BUFFER);
    if (r < 0)
        log_debug_errno(r, "Failed to turn off coredumps, ignoring: %m");
}
/* Turn off core dumps but only if we're running outside of a container. */
Turn off core dumps but only if we're running outside of a container.
Turn off core dumps but only if we ' re running outside of a container .
void disable_coredumps(void)
{
    int r;
    if (detect_container() > 0)
        return;
    r = write_string_file("/proc/sys/kernel/core_pattern", "|/bin/false",
                          WRITE_STRING_FILE_DISABLE_BUFFER);
    if (r < 0)
        log_debug_errno(r, "Failed to turn off coredumps, ignoring: %m");
}
void disable_coredumps ( void ) { int r ; if ( detect_container ( ) > 0 ) return ; r = write_string_file ( " " , " " , WRITE_STRING_FILE_DISABLE_BUFFER ) ; if ( r < 0 ) log_debug_errno ( r , " " ) ; }
Turn off core dumps but only if we're running outside of a container.
Turn off core dumps but only if we ' re running outside of a container .