Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1187)

Side by Side Diff: go/src/infra/tools/cipd/local/rename_posix.go

Issue 1258673004: cipd: Make it work on Windows. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // +build !windows 5 // +build !windows
6 6
7 package main 7 package local
8 8
9 import ( 9 import (
10 » "syscall" 10 » "os"
11 ) 11 )
12 12
13 var serverStartParams = &syscall.SysProcAttr{Setpgid: true} 13 func atomicRename(source, target string) error {
14 » return os.Rename(source, target)
15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698