mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 22:08:59 +00:00
AK: Don't add newline for outf/dbgf/warnf.
In the future all (normal) output should be written by any of the following functions: out (currently called new_out) outln dbg (currently called new_dbg) dbgln warn (currently called new_warn) warnln However, there are still a ton of uses of the old out/warn/dbg in the code base so the new functions are called new_out/new_warn/new_dbg. I am going to rename them as soon as all the other usages are gone (this might take a while.) I also added raw_out/raw_dbg/raw_warn which don't do any escaping, this should be useful if no formatting is required and if the input contains tons of curly braces. (I am not entirely sure if this function will stay, but I am adding it for now.)
This commit is contained in:
parent
4237089a21
commit
d5ffb51a83
Notes:
sideshowbarker
2024-07-19 02:04:25 +09:00
Author: https://github.com/asynts
Commit: d5ffb51a83
Pull-request: https://github.com/SerenityOS/serenity/pull/3680
16 changed files with 202 additions and 96 deletions
|
@ -140,14 +140,14 @@ int main(int argc, char** argv)
|
|||
}
|
||||
} else if (sid != pid) {
|
||||
if (getpgid(pid) != pid) {
|
||||
dbgf("We were already in a session with sid={} (we are {}), let's do some gymnastics", sid, pid);
|
||||
dbgln("We were already in a session with sid={} (we are {}), let's do some gymnastics", sid, pid);
|
||||
if (setpgid(pid, sid) < 0) {
|
||||
auto strerr = strerror(errno);
|
||||
dbgf("couldn't setpgid: {}", strerr);
|
||||
dbgln("couldn't setpgid: {}", strerr);
|
||||
}
|
||||
if (setsid() < 0) {
|
||||
auto strerr = strerror(errno);
|
||||
dbgf("couldn't setsid: {}", strerr);
|
||||
dbgln("couldn't setsid: {}", strerr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue