Changeset 7064e71 in mainline for uspace/lib/c/generic/libc.c


Ignore:
Timestamp:
2025-03-06T14:35:29Z (4 days ago)
Author:
Matěj Volf <git@…>
Children:
25ee7ec5
Parents:
9a41e6e
git-author:
Matěj Volf <git@…> (2025-03-05 23:09:43)
git-committer:
Matěj Volf <git@…> (2025-03-06 14:35:29)
Message:

run fibril exit hooks for main fibril as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    r9a41e6e r7064e71  
    8181                main_fibril.tcb = tls_make_initial(__progsymbols.elfstart);
    8282        }
     83        main_fibril.is_freeable = false;
    8384
    8485        assert(main_fibril.tcb);
     
    172173void __libc_exit(int status)
    173174{
    174         // TODO: some teardown of the main fibril?
    175         // namely, fibril_exit_hooks would like to run even on the main fibril
     175        fibril_run_exit_hooks(&main_fibril);
    176176
    177177        /*
Note: See TracChangeset for help on using the changeset viewer.