вт, 12 лист. 2024 р. о 22:09 stefan11111 <stefan11111@shitposting.expert> пише: > > Not really related to what was discussed earlier, > but I thought I might find someone who can help me with this here. > > I have this script for starting Xfbdev and running my .xinitrc: > > ``` > #!/bin/sh > > export DISPLAY=${DISPLAY:-:0} > trap "$HOME/.xinitrc" USR1 > > ( > trap '' USR1 > > exec /usr/bin/Xfbdev -screen 1920x1080 :0 vt1 > ) & > > wait > ``` > > This script works fine, except when I kill dwm with alt + q. > Instead of killing the X server along with dwm, the X server freezes and > I have to telnet in > from another device to kill it, by running pkill Xfbdev. > > Does anyone know how to improve the above script to get it to kill X > after I kill dwm? > > -- > Linux-gentoo-x86_64-Intel-R-_Core-TM-_i5-7400_CPU_@_3.00GHz > > COMMON_FLAGS="-O3 -pipe -march=native -fno-stack-check -fno-ident > -fno-stack-protector -ftree-vectorize -ffast-math -funswitch-loops > -fuse-linker-plugin -flto -fdevirtualize-at-ltrans -fno-plt > -fno-semantic-interposition -falign-functions=64 -fgraphite-identity > -floop-nest-optimize" > > USE="-* git verify-sig rsync-verify man alsa X grub ipv6 ssl lto > libressl olde-gentoo asm native-symlinks threads jit jumbo-build minimal > strip system-man custom-cflags" > > INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd > /usr/lib/modules-load.d /usr/lib/tmpfiles.d /var/lib/dbus /lib/udev" > > How to fix gcc 14: > > diff --git a/gcc/c-family/c-opts.cc.bak b/gcc/c-family/c-opts.cc > index f4dced8..0e12ac0 100644 > --- a/gcc/c-family/c-opts.cc > +++ b/gcc/c-family/c-opts.cc > @@ -861,8 +861,6 @@ c_common_post_options (const char **pfilename) > reject certain GNU extensions also present the defaults for later > language modes. */ > if (!c_dialect_cxx () > - && !flag_isoc99 > - && !global_dc->m_pedantic_errors > && !OPTION_SET_P (flag_permissive)) > { > flag_permissive = 1; >
Hi stefan11111, I've tested dwm-6.2 under Xfbdev in TinyCore Linux 13.1 and it doesn't hang the X, I was able to quit dwm with Alt-Q and then exit X with Ctrl-Alt-Backspace. In TCL X is started with .xsession and it doesn't set any traps. Regards, -- jazzbiker