Skip to main content

Questions tagged [system-programming]

All questions regarding programming, tweaking and configuring of Unix & Linux core system as a whole or a sub-set of it.

0votes
0answers
32views

How to wait for child processes to finish and then restart the systemctl service to avoid downtime?

I have a situation where I want to migration from using system slice to ABC slice for a systemctl service. Now that service is running some child processes as well during communication from data plane ...
samay varshney's user avatar
1vote
2answers
809views

How to pass a parameter in a command without run the parameter content?

Good days. I have a little problem. I have this function in bash script function denyCheck(){ file=$(readlink -f $(which $(printf "%s\n" "$1"))) if [[ -x $file ]];then ...
cleanet's user avatar
1vote
1answer
2kviews

A simple global keyboard shortcut handler

Yeah, I know there's actkbd which allows to assign global keyboard shortcuts which will work everywhere including the text console and a graphical session but I don't want to run an extra daemon (long ...
Artem S. Tashkinov's user avatar
0votes
0answers
191views

Does setting TCP_NODELAY disable auto-corking?

Does setting TCP_NODELAY turn off the auto corking behavior? Is there a way to disable it on a per connection basis?
Jason Nordwick's user avatar
0votes
1answer
2kviews

Is it possible to dynamically update systemd-timer's onCalendar?

sytemd-timer has a feature "onCalendar" using which we can execute a script on points of time (on calendar). Is it possible to dynamically (programmatically) update or mutate that field? For ...
Zeta.Investigator's user avatar
0votes
1answer
474views

blkid: blkid_probe_lookup_value() - strange partition types

I need to check filesystem type on a thumb drive in my C++ application. It must be done before mounting a new partition. I also prefer not to call system() function. I tried to use the following test ...
user6758's user avatar
0votes
1answer
51views

using greeter as base for locking app [closed]

I am a hobbyist (not IT specialist) and just had idea to write some lockscreen app/script to learn and repeat regex. I could use bash or Python, but don't know where to start. Could you point me ...
user455944's user avatar
2votes
1answer
2kviews

My thinkpad is being throttled to 400mhz per core. Is there any way I can force it to clock to normal speeds with the kernel?

there seems to be a common issue with Lenovo ThinkPad and the Intel CPUs being throttled to 400mhz per core: https://forums.lenovo.com/t5/ThinkPad-L-R-and-SL-series/L380-stuck-on-0-4-GHz-when-loading/...
Jannies - They do it for free's user avatar
1vote
1answer
2kviews

How pass the file's content through Named Pipe and then copy it into another one?

I wrote 2 programs that normally 1.create the named pipe(server) and 2. pass the string from the shell to the server part. I understand how to hand over a string from the terminal to the server part ...
Kirill Shvedov's user avatar
1vote
1answer
1kviews

Why below code is not able to unblock SIGINT signal

I am trying my hand on Linux Signals. Where I have created a scenario mentioned below: Initially block all SIGINT signals using sigprocmask(). If sender send SIGUSR1 signal then unblock SIGINT for ...
MankPan's user avatar
-1votes
1answer
191views

CPU statistics calculation algorithm

I too many search on internet to found algorithm calculated %Us , %Sy , %Id , ... on result of top command . but can not found any documentation . some documents like this or this calculate cpu ...
mah454's user avatar
5votes
4answers
9kviews

How can I make my Linux server sleep and wake on LAN when not in use?

I have recently purchased myself an HP rack server for use as a personal fileserver. This server currently lives under my bed as I have nowhere else to put it. For those not aware (as I was not ...
James Stone's user avatar
5votes
3answers
2kviews

Process creation time, shell script and system call overhead

I have a machine dual booted with Arch Linux and Ubuntu (16.04). I have recently started using the Kakoune text editor, and noticed that its startup time is drastically different depending on which OS ...
anon777's user avatar
1vote
1answer
109views

What does the STICKY_TIMEOUTS flag for personality(2) do?

Is there a good description of exactly what each of the flags you can pass to personality(2) does? I'm particularly interested in STICKY_TIMEOUTS, but a general detailed description of all of them ...
Omnifarious's user avatar
2votes
0answers
260views

How does vlan driver pass vlan info to the h/w ethernet driver

I'm trying to implement vlans on a target programmatically. But first I wanted to set up vlans manually to help get a better understanding of vlan setup. So I setup a vlan manually on my development ...
carlh's user avatar

153050per page
close